package com.freeheart.validation;


import com.freeheart.validation.constraints.Recent;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.Set;

/**
 * @author: EmperorHeart
 * @date: 2025/4/30 0:06
 * @description
 */
@Data
public class RecentDto {

    @Recent(2)
    private LocalDate localDate;

    @Recent(2)
    private LocalDateTime localDateTime;

    @Recent(2)
    private Date date;

    @Recent(value = 2,formater = "yyyy-MM-dd HH:mm:ss")
    private String dateString;

    private Set<@Recent(2) String> daset;


}
